package com.kushuigu.config;

import com.kushuigu.dao.BookDao;
import com.kushuigu.dao.BookDaoImpl;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScan("com.kushuigu")
@PropertySource("classpath:jdbc.properties")
@Import({JdbcConfig.class,MybatisConfig.class})
public class SpringConfig {
    @Bean(initMethod = "init", destroyMethod = "destroy")
    public BookDao bookDao(){
        return new BookDaoImpl();
    }

}
